﻿using UnityEngine;
using System.Collections;

public class PlayerHealth : MonoBehaviour {
	public Player p;
	
	// Update is called once per frame
	void Update () {
		this.guiText.text= Mathf.Max(p.commandCenter.health,0f)+"";
	}
}
